﻿using System;
using System.Collections.Generic;
using System.Text;

namespace LiteQueryWPF.FuncPanelHelper
{
    class ConfigLoader
    {
        Entities.FuncConfig funcConfig;

        public Entities.FuncConfig FuncConfig {
            get { return funcConfig; }
        }

        public ConfigLoader(string path)
        {
            LoadXMlConfig(path);
        }

        public void LoadXMlConfig(string path)
        {
            funcConfig = XmlHelper.XmlSerializeHelper.DeserializeXmlFromFile<Entities.FuncConfig>(path);
        }
    }
}
